import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Exchange/"
let serviceName1 = "guide/Company/"
import { getBaseUrls } from "@/utils/appUrl.js"
//获取退货单列表（全部="",待付款=0,待发货=1,待收货=2）
export function GetRefundOrderList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetRefundOrderList",
        data,
    })
}
//获取退货单
export function GetRefundOrderInfo(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetRefundOrderInfo",
        data,
    })
}
//退货详情 商品清单
export function GetRefundOrderDetail(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetRefundOrderDetail",
        data,
    })
}
//退单作废
export function CancelRefundOrder(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "CancelRefundOrder",
        data,
    })
}

//添加有单退货暂存
export function AddRefundOrderAction(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "AddRefundOrderAction",
        data,
    })
}
//获取有单退货暂存列表
export function GetRefundOrderActionList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetRefundOrderActionList",
        data,
    })
}
//获取无单退货暂存列表
export function GetRefundOrderTempList(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetRefundOrderTempList",
        data,
    })
}

//添加无单退货
export function AddRefundOrderTemp(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "AddRefundOrderTemp",
        data,
    })
}
//添加或更新退货单暂存
export function AddOrUpdateRefundOrderTemp(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "AddOrUpdateRefundOrderTemp",
        data,
    })
}
//修改退货单暂存信息
export function UpdateRefundOrderTemp(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "UpdateRefundOrderTemp",
        data,
    })
}
//修改退货单暂存数量
export function ChangeRefundOrderTempNumber(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "ChangeRefundOrderTempNumber",
        data,
    })
}

//删除无单退货暂存列表
export function DeleteRefundOrderTemp(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "DeleteRefundOrderTemp",
        data,
    })
}

//获取待退货订单详情
export function GetOrderDetailListOnRefund(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetOrderDetailListOnRefund",
        data,
    })
}
//有单退货提交
export function RefundOrderActionSubmit(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "RefundOrderActionSubmit",
        data,
    })
}

//无单退货提交
export function RefundOrderTempSubmit(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "RefundOrderTempSubmit",
        data,
    })
}
//获取常用快递
export function GetExpressList(path) {
    return http.post({
        url: getBaseUrls().basePublicUrl + serviceName1 + "GetExpressList" + path,
    })
}
//获取退货单信息(含详情、物流)
export function GetRefundOrderExtInfo(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetRefundOrderExtInfo",
        data,
    })
}
//保存退货物流信息
export function SaveRefundOrderAddress(data) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "SaveRefundOrderAddress",
        data,
    })
}
